#-- coding=utf-8 ---*---
# __author__ = 'wenke1'

fileObject1=open('testfile')
fileObject2=open('testfile',mode='a')


# fileread = fileObject2.read()
#
# filereadline =  fileObject1.readline()
# for line in fileObject1.readlines():
#     print line
# print "fileread is",fileread,type(fileread)
# print "fo3 is",filereadline

fileObject4=open('testfile2',mode='a')
print fileObject2
fileObject2.write('\nwenke\\')
fileObject2.writelines('lsjljlg\nllsjdglj\nasdijgajgoa')
fileObject2.writelines(fileObject1.readlines())

fileObject1.close()
fileObject2.close()
fileObject4.close()
